<?php

class m120606_112634_alter_answer extends EDbMigration {

	public function safeUp() {
		try {
			$this->addColumn('answers', 'parentId', "integer default 0");
		} catch (Exception $e) {
			
		}
	}

	public function safeDown() {
		try {
			$this->dropColumn('answers', 'parentId');
		} catch (Exception $e) {
			
		}
	}

}